package org.dromara.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 公告管理(AsCommunityAnnouncements)实体类
 *
 * @author makejava
 * @since 2024-07-30 15:31:41
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "as_community_announcements")
@Schema(description = "公告管理实体类")
public class AsCommunityAnnouncements extends Model<AsCommunityAnnouncements> {
    private static final long serialVersionUID = 321477482368537614L;

    @TableId(value = "id", type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Schema(description = "主菜单", example = "General")
    private String category;

    @Schema(description = "子菜单", example = "Announcements")
    private String subcategory;

    @Schema(description = "标题", example = "Community Update")
    private String title;

    @Schema(description = "内容", example = "This is the content of the community announcement.")
    private String description;

    @Schema(description = "公告关联的标签", example = "update, community")
    private String tag;

    @Schema(description = "图片路径", example = "/images/announcement.jpg")
    private String url;

    @Schema(description = "创建人", example = "admin")
    private String createdBy;

    @Schema(description = "创建时间", example = "2024-07-30T15:31:41Z")
    private Date createdTime;

    @Schema(description = "修改者", example = "admin")
    private String updatedBy;

    @Schema(description = "修改时间", example = "2024-07-30T15:31:41Z")
    private Date updatedTime;

    @Schema(description = "逻辑删除", example = "0")
    private Long isDelete;
}
